/**
 * User: alesj
 * Date: 23.1.2006
 * Time: 16:38:57
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.ejb.common;

/**
 * Common interface for business logic.
 *
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public interface BusinessManager {

    /**
     * Update submited message (by messageId)
     *
     * @param messageId
     * @param number
     */
    void updateSubmit(String messageId, String number);

    /**
     * Update on message delivery (by messageId)
     *
     * @param messageId
     * @param number
     */
    void updateDelivery(String messageId, String number);

    /**
     * Persist/save error from non ejb tier.
     *
     * @param messageId
     * @param number
     * @param exMessage
     */
    void saveErrorLog(String messageId, String number, String exMessage);

}
